<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class UsersAddAdminId extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('users', function (Blueprint $table) {

            $table->integer('admin_id')->after('hour_num')->comment('管理员id')->index();
            $table->integer('teacher_id')->after('hour_num')->comment('分配的老师的id')->index();
            $table->string('name_en')->after('name')->comment('英文名')->index();
            $table->integer('age')->after('name')->comment('年龄');
            $table->string('work')->after('name')->comment('职业');

        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
